package com.blb.community_admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.blb.community_admin.entity.ZyBuilding;
import com.blb.community_admin.entity.ZyCommunity;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ZyBuildingMapper extends BaseMapper<ZyBuilding> {
    //查询所有
    List<ZyBuilding> selectBuilding();
    //模糊查询分页
    IPage<ZyBuilding> selectBuidingPage(IPage<ZyBuilding> page, @Param("zyBuilding") ZyBuilding zyBuilding);
    /**
     * 查询所有小区
     * @return
     */
    List<ZyCommunity> getAllCommunity();

}
